<%@ page import="java.io.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head/>
<body>
<%
//File warFile = new File ("/opt/tomcat7/webapps/ROOT/foo.war");
File warFile = new File("C:\\apache-tomcat-7.0.33\\webapps\\beanstalker\\beanstalkerDeuce.war");
File dir = new File ("c:\\apache-tomcat-7.0.33\\webapps");
boolean success = warFile.renameTo (new File (dir, warFile.getName ()));
if (!success) {
out.println ("Oops!");
}
%>
</body>
</html>